//
//  Appointment.m
//  OsteoGest
//
//  Created by Pierre de Filippis on 5/16/07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import "Appointment.h"
#import "Customer.h"

@implementation Appointment

@synthesize date;
@synthesize location;
@synthesize patient;

- (id)init
{
	if ( self = [super init] )
	{
		_date = [NSCalendarDate calendarDate];
		_location = @"Lausanne";
		_duration = 60;
		_patient = [[Customer alloc] init];
		_type = kHour;
		_bill = nil;
		_billed = NO;
		return self;
	}
	else
		return nil;
}

- (void) dealloc
{
	[_patient release];
	[super dealloc];
}

- (BOOL)isBilled
{
	return _billed;
}

@end
